<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<form id="pagerForm" method="post" action="dictionaries/find.do">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${requestScope.x.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="dictionaries/find.do" method="post">
	
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>字典名称：</label>
				<input type="text" name="name" value="${requestScope.x.name}" />
			</li>
			
		</ul>
		
		
		<div class="subBar">
			<ul>
				<li ><div class="buttonActive"><div class="buttonContent"><button  type="submit">查询</button></div></div></li>
				
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			
			<li><a class="add" href="dictionaries/dictionaryManager.do" target="dialog"><span>添加</span></a></li>
			<li ><a class="delete" href="dictionaries/delete.do" rel="ids" target="selectedTodo" title="确定要删除吗？" warn="请选择一个用户"><span>删除</span></a></li>
			<li><a class="icon" href="dictionaries/export.do" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
			
			
			
		</ul>
	</div>

	<div id="w_list_print">
	<table class="list" width="98%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
			    <th width="22"></th>
			    <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th >字典名称</th>
				<th >字典类型</th>
				<th >字典值</th>
				<th >操作</th>
			</tr>
			
		</thead>
		<tbody>
			<c:forEach items="${requestScope.u}" var="u" varStatus="ss">

			<tr target="id"  rel="${u.id}">
				<td >${ss.index+1 }</td>
				<td><input type="checkbox" name="ids" value="${u.id}" /></td>
				
				<td >${u.name}</td>
				<td >${u.type}</td>
				<td >${u.value}</td>
				<td ><a class="edit" href="dictionaries/up.do?id=${u.id}"  target="dialog" warn="请选择一个用户"><span>修改</span></a></td>
			</tr>

		</c:forEach>
		</tbody>
	</table>
	</div>
	
	<div class="panelBar" >
		<div class="pages">
			<span>显示</span>
			<select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="10">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
			</select>
			<span>条，共${requestScope.x.totalCount}条</span>
		</div>
		
			<div class="pagination" targetType="navTab" totalCount="${requestScope.x.totalCount}" numPerPage="${requestScope.x.numPerPage}" pageNumShown="5" currentPage="${requestScope.x.pageNum}"></div>

	</div>

</div>


  

